package es.eupt.amazingpi.sync;

import java.io.IOException;
import java.io.ObjectOutputStream;
import java.io.OutputStream;

public class MensajeOutputStream extends ObjectOutputStream {

	public MensajeOutputStream(OutputStream os) throws IOException {
		super(os);
	}
	
	public void writeMensaje (Mensaje msg) throws IOException {
		super.writeObject(msg);
		super.flush();
	}

}
